package alan.mybatisPlusDb;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 * MapperScan 只能包含dao的接口,不能包含其他的接口,不然多注入bean,
 */
@SpringBootApplication
@MapperScan("alan.mybatisPlusDb.module.order.mapper")
@ServletComponentScan
public class Springboot2xMybatisPlusDbApplication {

    public static void main(String[] args) {
        SpringApplication.run(Springboot2xMybatisPlusDbApplication.class, args);
    }

}
